#pragma once

#include <d3d9.h>
#include <d3dx9.h>

class Deck
{
private:
	int card[45];	//49 cards in a deck
	int remaining;

public:
	Deck();
	~Deck();

	LPD3DXMESH			m_CardMesh;	//Mesh used for the Card//
	LPD3DXBUFFER		m_CardTextureData;
	DWORD				m_NumTextures;

	LPDIRECT3DTEXTURE9	m_CardTexture[13];

	void InitCard(LPDIRECT3DDEVICE9&);

	LPD3DXMESH GetMesh() {return m_CardMesh;};
	LPDIRECT3DTEXTURE9 GetTexture(int i) {return m_CardTexture[i];};

	void Reset();
	void DisCard(int);
	int GetValue();
	int GetRemaining() {return remaining;};
};